/*
 * @Author: taosong 2289713738@qq.com
 * @Date: 2023-12-15 20:44:36
 * @LastEditors: taosong 2289713738@qq.com
 * @LastEditTime: 2024-01-03 20:41:06
 * @FilePath: \ele-h5\src\main.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import 'vant/lib/index.css'
import './assets/common.scss'

import { Tabbar, TabbarItem, Search, Icon, Loading, Skeleton, Tab, Tabs, Sticky } from 'vant'

const app = createApp(App)

app
  .use(Tabbar)
  .use(TabbarItem)
  .use(Search)
  .use(Icon)
  .use(Loading)
  .use(Skeleton)
  .use(Tab)
  .use(Tabs)
  .use(Sticky)

app.use(createPinia())

app.use(router)

const rootValue = 16
const rootWidth = 390
const deviceWidth = document.documentElement.clientWidth
document.documentElement.style.fontSize = (rootValue * deviceWidth) / rootWidth + 'px'

app.mount('#app')
